package com.roncoo.course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wdf
 * @since 2021-03-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="HomePrecinct对象", description="")
public class HomePrecinct extends Model<HomePrecinct> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "p_id", type = IdType.AUTO)
    private Integer pId;

    private String pName;

    private String pDescribe;

    private Integer status;

    private List<EduCourse> eduCourseList;

    @Override
    protected Serializable pkVal() {
        return this.pId;
    }

}
